package jp.sourceforge.akjrcp.videotools.subtitlemaker;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.swt.widgets.Control;


public class FileModifiedControler {
private boolean modified;
private String filePath;
private List<Control> controls=new ArrayList<Control>();
private String encoding;
public void addControl(Control control){
	controls.add(control);
}
public boolean isModified() {
	return modified;
}
public void setModified(boolean modified) {
	this.modified = modified;
	for(int i=0;i<controls.size();i++){
		controls.get(i).setEnabled(modified);
	}
}
public String getFilePath() {
	return filePath;
}
public void setFilePath(String filePath) {
	this.filePath = filePath;
}
public String getEncoding() {
	return encoding;
}
public void setEncoding(String encoding) {
	this.encoding = encoding;
}

}
